package cn.csc.module.pay.dal.mysql.jzbreconciliation;

import cn.csc.framework.mybatis.core.mapper.BaseMapperX;
import cn.csc.framework.mybatis.core.query.QueryWrapperX;
import cn.csc.module.pay.dal.dataobject.jzbreconciliation.PayJzbReconciliationDO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author liuchuang
 * @version 1.0
 * @date 2023/5/19 9:58
 * @modify
 */
@Mapper
public interface PayJzbReconciliationMapper extends BaseMapperX<PayJzbReconciliationDO> {

    default List<PayJzbReconciliationDO> selectList(String fileType, String fileDate, String fileName, String filePath) {
        return selectList(new QueryWrapperX<PayJzbReconciliationDO>()
                .eqIfPresent("file_type", fileType)
                .eqIfPresent("file_date", fileDate)
                .eqIfPresent("file_name", fileName)
                .eqIfPresent("file_path", filePath)
                .orderByDesc("id"));
    }

}

